home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-09-06 | 1.7 KB | 53 lines | [TEXT/EDIT] |
- Listing: AutoHyperEdit Update Script
-
- on arrowkey whichkey-**AutoHyperEdit**—
- global CWSList
- if the shiftkey is down then
- put item 1 of cwslist into T
- put the width of T into TW
- put the height of T into TH
- if whichkey is “down” then set the height of T to TH - 1
- if whichkey is “up” then set the height of T to TH + 1
- if whichkey is “left” then set the width of T to TW - 1
- if whichkey is “right” then set the width of T to TW + 1
- end if
- if the mouse is down then
- if whichkey = “left” then
- put the mouseH into L
- repeat with i = 1 to the number of items in CWSList
- put the width of item i of Cwslist into w
- set the left of item i of Cwslist to L
- set the width of item i of Cwslist to w
- end repeat
- end if
-
- if whichkey = “right” then
- put the mouseH into R
- repeat with i = 1 to the number of items in CWSList
- put the width of item i of Cwslist into w
- set the right of item i of Cwslist to R
- set the width of item i of Cwslist to w
- end repeat
- end if
-
- if whichkey = “up” then
- put the mouseV into T
- repeat with i = 1 to the number of items in CWSList
- put the height of item i of Cwslist into h
- set the top of item i of Cwslist to T
- set the height of item i of Cwslist to h
- end repeat
- end if
-
- if whichkey = “down” then
- put the MouseV into B
- repeat with i = 1 to the number of items in CWSList
- put the height of item i of Cwslist into h
- set the bottom of item i of Cwslist to B
- set the height of item i of Cwslist to h
- end repeat
- end if
- exit arrowkey
- end if
- pass arrowkey
- end arrowkey —**AutoHyperEdit**—